package com.qf.feign;

import com.qf.vo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 你的名字
 * @Date: 2021/07/24/11:23
 * @Description:
 */
@FeignClient(name = "order",path = "orderController")
public interface OrderService {
    @RequestMapping("/getOrderByOid/{oid}")
    public Order getOrderByOid(@PathVariable("oid") String oid);
    @RequestMapping("/updateOrderStatus")
    void updateOrderStatus(@RequestParam("oid") String oid,@RequestParam("status") Integer status);
}
